
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr><td colspan="6" class="t_bar">单位基本信息</td></tr>
	<tr>
		<td width="150px" nowrap align="right">单位名称：</td>
		<td colspan='5'>
		    <input type="hidden" name="organizations/organization[0]@submit_org" value="1" > 
			<input type="hidden" name="organizations/organization[0]@sequence_no" value="1" >
			<input type="hidden" name="organizations/organization[0]/org_code" 
							value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
			<span name="organizations/organization[0]/cname">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/>
			</span>
		</td>
    </tr>
    <tr>
		<td align="right">法人代码：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/org_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_no"/>
			</span>
		</td>
		<td align="right" nowrap>电子邮件：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/email">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/email"/>
			</span>
	    </td>
	    <td nowrap align="right">邮编：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/zip_code">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/zip_code"/>
			</span>
	    </td>
    </tr>
    <tr>
        <td width="" nowrap align="right">通讯地址：</td>
		<td colspan='3'>
			<span name="organizations/organization[0]/address">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address"/>
			</span>
		</td>
    
        <td align="right">传真：</td>
		<td >
			<span name="organizations/organization[0]/fax">
			<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/fax"/>
			</span>
		</td>
		
    </tr>
    <tr>
        <td align="right">联系人：</td>
		<td>
			<span name="organization_persons/organization_person[00]/cname">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_name"/>
			</span>
			<input type="hidden"
				  name="organization_persons/organization_person[00]@psn_type" value="lianxiren">
		</td>
		<td align="right">电话：</td>
		<td>
			<span name="organization_persons/organization_person[00]/tel">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel"/>
			</span>
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[00]/mobile">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_mobile"/>
			</span>
		</td>
    </tr>
   
    <tr>
		<td align="right">开户银行：</td>
		<td >
		    <span name="organizations/organization[0]/bank_orgname">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname"/>
			</span>
		</td>
		<td align="right">银行账号：</td>
		<td >
		    <span name="organizations/organization[0]/bank_account">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account"/>
			</span>
	    </td>
	    <td align="right">信用等级：</td>
		<td >
		    <span name="organizations/organization[0]/bank_credit">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_credit"/>
			</span>
	    </td>
    </tr>
    
    
    <tr>
		<td nowrap align="right" valign="middle"><span class="color_red">*</span>注册类型：</td>
		<td nowrap colspan="5" valign="middle"><label> <input
				type="checkbox" class="do " id="advant_01"
				style="vertical-align: middle;" name="advant" label="国有企业"
				value="01" /><span style="vertical-align: middle;">国有企业</span>
		</label> <label> <input type="checkbox" class="do " id="advant_02"
				style="vertical-align: middle;" name="advant" label="国有控股企业"
				value="02" /><span style="vertical-align: middle;">国有控股企业</span>
		</label> <label> <input type="checkbox" class="do " id="advant_03"
				style="vertical-align: middle;" name="advant" label="民营企业"
				value="03" /><span style="vertical-align: middle;">民营企业</span>
		</label> <label> <input type="checkbox" class="do " id="advant_04"
				style="vertical-align: middle;" name="advant" label="民营控股企业"
				value="04" /><span style="vertical-align: middle;">民营控股企业</span>
		</label> <label> <input type="checkbox" class="do " id="advant_05"
				style="vertical-align: middle;" name="advant" label="外商独资企业"
				value="05" /><span style="vertical-align: middle;">外商独资企业</span>
		</label> <label> <input type="checkbox" class="do " id="advant_06"
				style="vertical-align: middle;" name="advant" label="中外合资企业" value="06" /><span
				style="vertical-align: middle;">中外合资企业</span>
		</label><label> <input type="checkbox" class="do " id="advant_07"
				style="vertical-align: middle;" name="advant" label="中外合作企业" value="07" /><span
				style="vertical-align: middle;">中外合作企业</span>
		</label><br/><label><input type="checkbox" class="do " id="advant_08"
				style="vertical-align: middle;" name="advant" label="财政核拨事业单位" value="08" /><span
				style="vertical-align: middle;">财政核拨事业单位</span>
		</label><label><input type="checkbox" class="do " id="advant_09"
				style="vertical-align: middle;" name="advant" label="财政核拨补助事业单位" value="09" /><span
				style="vertical-align: middle;">财政核拨补助事业单位</span>
		</label><label><input type="checkbox" class="do " id="advant_10"
				style="vertical-align: middle;" name="advant" label="自收自支事业单位" value="10" /><span
				style="vertical-align: middle;">自收自支事业单位</span>
		</label><label><input type="checkbox" class="do " id="advant_11"
				style="vertical-align: middle;" name="advant" label="企业化管理事业单位" value="11" /><span
				style="vertical-align: middle;">企业化管理事业单位</span>
		</label><label><input type="checkbox" class="do " id="advant_12"
				style="vertical-align: middle;" name="advant" label="其他" value="12" /><span
				style="vertical-align: middle;">其他</span>
		</label>
		<input type="hidden" name="proposal/basic/advant_value" id="advant_value" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/advant_value" />"
			label="注册类型" /> 
	    <input type="hidden" name="proposal/basic/advant_name" id="advant_name"
			value="<x:out select="$xmlData/data/proposal/basic/advant_name" />"
			label="注册类型" /></td>
	</tr>
    
     <tr>
		
		<td align="right">注册时间：</td>
		<td>
		    <span name="organizations/organization[0]/registe_date">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date"/>
			</span>
		</td>
		<td align="right">注册资金：</td>
		<td >
		    <span name="organizations/organization[0]/registe_fund">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund"/>万<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_money_name"/>
			</span>
	    </td>
	   
	    <td  align="right" nowrap>其中外资比例：</td>
		<td >
		    <span name="organizations/organization[0]/registe_fund_foreign_rate">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_foreign_rate"/>%
			</span>
	    </td>
    </tr>
    <tr>
		<td align="right"><span class="color_red">*</span>近两年银行贷款总额：</td>
		<td >
		<input name="proposal/loan_ceiling" id="loan_ceiling" label="近两年银行贷款总额" class="required valueGreatEqual:loan_ceiling:balance" style="text-align:right;width:130px;"
			onfocus="InitInput.setNumber(this,7,4,2);" onchange="repayClean(this.id,'repay','colorRed');" value="<x:out select="$xmlData/data/proposal/loan_ceiling" />"/>万元
		</td>
		<td align="right"><span class="color_red">*</span>余额：</td> 
		<td >
		    <input name="proposal/balance" id="balance" label="余额" style="text-align:right;width:130px;" onfocus="InitInput.setNumber(this,7,4,2)" class="required" value="<x:out
					select="$xmlData/data/proposal/balance" />"/>万元
	    </td>
	    <td nowrap align="right"><span class="color_red" id="colorRed">*</span>到期偿还情况：</td>
		 <td colspan='2'>
		<c:set var="repay_value"><x:out select="$xmlData/data/proposal/repay_value" /></c:set>
		<input name="proposal/repay_value" id="repay_value" type="hidden" value="<x:out select="$xmlData/data/proposal/repay_value" />"  label="近两年银行贷款总额中的到期偿还情况"/>
		<input name="proposal/repay_name" id="repay_name" type="hidden" value="<x:out select="$xmlData/data/proposal/repay_name" />" />
		<cpt:select id="repay" key="repay"  onChange="initControlValue('repay')"  value="${repay_value}"></cpt:select> 
	    </td>
	  </tr>
</table>
<br>
<div class="t_bar">
	主要股东
</div>
	<table border="0" cellspacing="0" cellpadding="0" class="table01" >
		<thead>
			<tr>
				<th align="center" width="40%"  nowrap>主要股东名称</th>
				<th width="20%" align="center">股东出资额（万元）</th>
				<th width="20%">出资形式</th>
				<th width="20%">所占股份比例（%）</th>
				
			</tr>
		</thead>
		<tbody id="tab">
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization_shareholders/shareholder" var="shareholder">
			    <c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td align="center">
						<span style='display:none' name="organizations/shareholders/shareholder[${flag}${index}]@sequence_no">${index+1}</span>
						<span name="organizations/shareholders/shareholder[${flag}${index}]/cname">
						     <x:out select="$shareholder/cname" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_amount">
						     <x:out select="$shareholder/invest_amount" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_type_name">
						     <x:out select="$shareholder/invest_type_name" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_percent">
						     <x:out select="$shareholder/invest_percent" />
						</span>
					</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			</tbody>
	</table>
<br>
<div class="t_bar">
	近三年曾获政府资助的情况（金额：万元）
</div>
<table class="table01" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr>
		<th>项目名称</th>
		<th>资助部门</th>
		<th>资助时间</th>
		<th>资助金额</th>
		<th>项目验收情况</th>
		<th>资助形式</th>
		<th>借款偿还情况</th>
	</tr>
	
	<tbody id="tab">
	    <c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/organization_research/fund_project" var="research">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/ctitle"> <x:out
							select="$research/ctitle" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/award_dept"> <x:out
							select="$research/award_dept" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_date"> <x:out
							select="$research/award_date" />
				</span></td>
				<td align="right"><span
					name="research/fund_project[${flag}${index}]/award_amt"> <x:out
							select="$research/award_amt" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/accept_flag_name">
						<x:out select="$research/accept_flag_name" />
				</span></td>
				<td align="left"><span name="research/fund_project[${flag}${index}]/award_type_name">
						<x:out select="$research/award_type_name" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/repay_flag_name">
						<x:out select="$research/repay_flag_name" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<script>
$(document).ready (function() {
	repayClean('loan_ceiling','repay','colorRed');
	
});
function repayClean(obj,string1,string2){
	var value=$("#"+obj).val();
	
	if(value==0){
		$("#"+string1+"_value").removeClass("required");
		$("#"+string1).attr("disabled",true);
		$("#"+string2).hide();
		$("#"+string1).val("");
		$("#"+string1+"_value").val("");
		$("#"+string1+"_name").val("");
	}
	else
		{
		$("#"+string1+"_value").addClass("required");
		$("#"+string1).attr("disabled",false);
		$("#"+string2).show();
		}
	
}
</script>

